1bashThis script checks the connectivity to a specified host and port using nc (Netcat) and outputs the exit status of the connection attempt.HOST_IP=${1:?'is required'} HOST_PORT=${2:?'is required'} nc -vz $HOST_IP $HOST_PORT >/dev/null 2>&1; echo $?solutionsnetwork connectivity check